package cn.com.java.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 日志记录
 * </p>
 *
 * @author ***
 * @since 2024-01-05
 */
@Data
@TableName("sys_log")
@ApiModel(value = "SysLog对象", description = "日志记录")
public class SysLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("用户账号")
    @TableField("user_name")
    private String userName;

    @ApiModelProperty("类")
    @TableField("operation")
    private String operation;

    @ApiModelProperty("方法")
    @TableField("method")
    private String method;

    @ApiModelProperty("参数")
    @TableField("params")
    private String params;

    @ApiModelProperty("执行时长")
    @TableField("time")
    private Long time;

    @ApiModelProperty("ip")
    @TableField("ip")
    private String ip;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private Date createTime;

    @ApiModelProperty("备注")
    @TableField("remark")
    private String remark;
}
